import Http  from './http';
import Api  from './api';

class CustomerService {

  static getCustomerAddrs(data) {
    return Http.request({
      url:Api.Customer.getCustomerAddrs,
      method:'GET',
      data:data
    });
  }

  static getCustomerAddrDefault(data) {
    return Http.request({
      url:Api.Customer.getCustomerAddrDefault,
      method:'GET',
      data:data
    });
  }
  static addAddr(data) {
    return Http.request({
      url:Api.Customer.addAddr,
      method:'GET',
      data:data
    });
  }

  static delAddr(data) {
    return Http.request({
      url:Api.Customer.delAddr,
      method:'GET',
      data:data
    });
  }

  static setDefaultAddr(data) {
    return Http.request({
      url:Api.Customer.setDefaultAddr,
      method:'POST',
      data:data
    });
  }

  static getAddrById(data) {
    return Http.request({
      url:Api.Customer.getAddrById,
      method:'GET',
      data:data
    });
  }

  static getCustomerInfo(data) {
    return Http.request({
      url:Api.Customer.getCustomerInfo,
      method:'GET',
      data:data
    });
  }

}
export default CustomerService;
